/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.xs_listen_chapter.entity;

import com.jeeplus.modules.xs_book.entity.XsBook;
import com.jeeplus.modules.xs_writer.entity.XsWriter;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 听书章节信息Entity
 * @author 天竹子
 * @version 2021-07-15
 */
@Data
public class XsListenChapter extends DataEntity<XsListenChapter> {
	
	private static final long serialVersionUID = 1L;
	@ExcelField(title="第几章", align=2, sort=1)
	private Integer chapterNumber;		// 第几章
	@ExcelField(title="章节名称", align=2, sort=2)
	private String name;		// 章节名称
	@ExcelField(title="章节链接", align=2, sort=3)
	private String url;		// 章节链接
	@ExcelField(title="书籍名称", fieldType=XsBook.class, value="book.name", align=2, sort=4)
	private XsBook book;		// 书籍名称
	@ExcelField(title="作者名称", fieldType=XsWriter.class, value="writer.name", align=2, sort=5)
	private XsWriter writer;		// 作者名称
	
	public XsListenChapter() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}
	
	public XsListenChapter(String id){
		super(id);
	}
}